<?php

class Custom_Form_Address extends Custom_Form_Abstract{
public function init(){
		$this->addElement('text', 'address1', array(
            'decorators' => $this->elementDecorators,
            'label'       => 'Address 1:',
        	'required'	=>	true
        ));
        
        $this->addElement('text', 'address2', array(
            'decorators' => $this->elementDecorators,
            'label'       => 'Address 2:',
        	'required'	=>	false
        ));
        
        $this->addElement('text', 'city', array(
            'decorators' => $this->elementDecorators,
            'label'       => 'City:',
        	'required'	=>	true
        ));
        
        $this->addElement('select', 'state', array(
            'decorators' => $this->elementDecorators,
            'label'       => 'State:',
        	'multiOptions'	=> 	$this->_stateList,
        	'required'	=>	true
        ));
        
        $this->addElement('text', 'zip', array(
            'decorators' => $this->elementDecorators,
            'label'       => 'Zip Code:',
        	'required'	=>	true
        ));
        
        $this->addElement('select', 'addressType', array(
            'decorators' => $this->elementDecorators,
            'label'       => 'Address Type:',
        	'MultiOptions' => $this->_type,
        	'required'	=>	true
        ));
        
        $this->addElement('submit', 'setAddress', array(
            'decorators' => $this->buttonDecorators,
            'label'       => 'Set Address',
        ));
	}
}